package com.chen.winnerframework.cqrs.command.query;

/**
 * 分页查询命令
 *
 * @author chengy
 * @date 2022/11/18
 */
public class PageQuery<Q extends Query> {

    /**
     * 当前页
     */
    private Integer currentPage;

    /**
     * 页大小
     */
    private Integer pageSize;

    /**
     * 查询命令
     */
    private Q qry;

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Q getQry() {
        return qry;
    }

    public void setQry(Q qry) {
        this.qry = qry;
    }

}
